package com.qf.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.entity.Permission;
import com.qf.entity.User;

import java.util.List;

public interface IAutoService {
    List<Permission> selectAllJson();

    Permission getById(Integer id);

    List<User> selectRoleUser(Integer rid);

    int deleteUsers(Integer rid, List<User> users);

    int addRoleByUser(Integer rid, List<User> users);


    List<Integer> selectPermissionByRid(Integer rid);

    int addRoleByPermission(Integer rid, List<Integer> pids);

    int deleteRoleByPermission(Integer rid);
}
